package _998YeWuDaiBiao;

/**
 * @Test:
 * @author: ZBoHang
 * @time: 2021/9/18 9:52
 */
class Test {
    public static void main(String[] args) {
        BusinessDelegate businessDelegate = new BusinessDelegate();
        businessDelegate.setServiceType("EJB");

        Client client = new Client(businessDelegate);
        client.doTask();

        businessDelegate.setServiceType("JMS");
        client.doTask();
    }
}
